package com.anxin.common.enums;

import lombok.Getter;

/**
 * 角色枚举
 */
@Getter
public enum RoleEnum {
    ADMIN("1", "管理员", "ADMIN"),
    DOCTOR("2", "医生", "DOCTOR"),
    PATIENT("3", "患者", "PATIENT");

    private final String code;
    private final String name;
    private final String authority;

    RoleEnum(String code, String name, String authority) {
        this.code = code;
        this.name = name;
        this.authority = authority;
    }
}
